package homework1;

import java.util.ArrayList;

public class ArrayListDemo {

	public static void main(String[] args) {
		ArrayList<Company> companies = new ArrayList<Company>();
		companies.add(new Company("万达", "中国"));
		companies.add(new Company("星巴克", "法国"));
		companies.add(new Company("耐克", "美国"));
		companies.add(new Company("优衣库", "日本"));
		
		System.out.println("公司个数："+companies.size());

	}

}
